﻿using System;
using System.Collections.Generic;
using System.Text;
using XNAGuiLib.GuiLibResourceManager;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace XNAGuiLib.GuiLibScrollbar
{
    /// <summary>
    /// Class 'DefaultScrollbar' provides a scrollbar-component (used on textfields) with the "default" style
    /// </summary>
    public class DefaultScrollbar : ScrollbarObject
    {
        // default constructor
        #region Constructor - DefaultScrollbar(Game game, string name, Vector2 relPosition, Vector2 bounds)
        public DefaultScrollbar(Game game, string name, Vector2 relPosition, Vector2 bounds)
            :base(game, name, relPosition, bounds, Color.DarkSlateGray, GuiResourceManager.ResourceManagerType.StyleDefault)
        {
            ScrollUp.Bounds = new Vector2(ScrollUp.Unclicked.Width, 10.0f);
            ScrollDown.Bounds = new Vector2(ScrollDown.Unclicked.Width, 10.0f);

            this._initialized = true;
        }
        #endregion
    }
}
